!!!
%html
  %head
    %title= '后台管理'
    = csrf_meta_tags
    = stylesheet_link_tag    'cpanel', media: 'all', 'data-turbolinks-track': 'reload'
    = javascript_include_tag 'cpanel', 'data-turbolinks-track': 'reload'

  %body
    #wrapper
      %nav.navbar.navbar-default.navbar-static-top{role: 'navigation', style: 'margin-bottom: 0'}
        = render 'shared/cpanel/navbar_header'
        <!-- /.navbar-header -->
        <!-- /.navbar-top-links -->
        = render 'shared/cpanel/navbar_top_links'
        <!-- /.navbar-static-side -->
        = render 'shared/cpanel/navbar_sidebar'

      #page-wrapper
        = yield

:javascript
  $(function(){
    if("#{flash[:notice]}" != ""){
      CPANEL.alert_success("#{flash[:notice]}");
    }
  });
